/**
 * 基础路由
 * @type { *[] }
 */
import {AppSider, Menu,BlankLayout} from '@/layouts'

export const constantRouterMap = [
  {
    path: '/',
    name: 'Index',
    component: BlankLayout,
    props: { id: 'host' },
    redirect: { name: 'HostIndex' },
    children: [
      {
        path: '/login',
        name: 'LoginIndex',
        component: () => import('@/views/login/Index')
      },
      {
        path: '/host',
        name: 'HostIndex',
        component: () => import('@/views/index/Index')
      },

    ]
  },


  {
    path: '/admin',
    component: AppSider,
    children: [
      {
        path: '/admin',
        name: 'Crawler',
        component: Menu,
        props: { id: 'crawler' },
        redirect: { name: 'CrawlerUserIndex' },
        children: [
          {
            path: '/crawler/user/index',
            name: 'CrawlerUserIndex',
            component: () => import('@/views/crawler/user/Index')
          },
          // {
          //   path: '/crawler/comment/index',
          //   name: 'CrawlerCommentIndex',
          //   component: () => import('@/views/crawler/comment/Index')
          // },
          // {
          //   path: '/crawler/commentDetail/index',
          //   name: 'CrawlerCommentDetailIndex',
          //   component: () => import('@/views/crawler/commentDetail/Index')
          // },
          // {
          //   path: '/crawler/settings/index',
          //   name: 'CrawlerSettingsIndex',
          //   component: () => import('@/views/crawler/settings/Index')
          // },

        ]
      },
      {
        path: '/other',
        name: 'Other',
        component: Menu,
        props: { id: 'other' },
        redirect: { name: 'OtherTestIndex' },
        children: [
          {
            path: '/other/test/index',
            name: 'OtherTestIndex',
            component: () => import('@/views/other/test/Index')
          },
        ]
      }
    ]
  }
]
